<?php

namespace App\Http\Requests;

class PayServiceRequest extends BaseRequest
{
    public function rules(): array
    {
        return [
            'pay_way' => [],
            'service_id' => ['required'],
            'worker_id' => [],
            'appoint_time' => [],
            'user_coupon_id' => [],
            'user_card_id' => [],
            'remark' => [],
            'car_id' => ['required'],
            'longitude' => ['required'],
            'latitude' => ['required'],
            'address' => ['required'],
        ];
    }


    public function messages(): array
    {
        return [
            'service_id.required'=>'请选择充值选项!',
            'car_id.required'=>'请选择车辆!',
            'longitude.required'=>'缺少经度参数!',
            'latitude.required'=>'缺少纬度参数!',
            'address.required'=>'缺少地址!',
        ];
    }
}
